package com.xsprite.managesys.bean;

import java.util.Date;
import java.util.List;
import java.util.UUID;

public class XlsxFileBean {
	private String id;
	private String filename;
	private long uploadDate;
	private String uploadDateStr;
	private long fileSize;
	private String filePath;
	private List<MySheet> sheets;
	
	public List<MySheet> getSheets() {
		return sheets;
	}
	public void setSheets(List<MySheet> sheets) {
		this.sheets = sheets;
	}
	public XlsxFileBean(){
		id = UUID.randomUUID().toString();
	}
	public String getId() {
		return id;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public long getUploadDate() {
		return uploadDate;
	}
	public void setUploadDate(long uploadDate) {
		this.uploadDate = uploadDate;
		Date date = new Date(uploadDate);
		setUploadDateStr(date.toString());
	}
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	public String getUploadDateStr() {
		return uploadDateStr;
	}
	public void setUploadDateStr(String uploadDateStr) {
		this.uploadDateStr = uploadDateStr;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
}
